<template>
	<view class="container">
		<view>
			<desc-wrapper :title="title" :desc="desc"></desc-wrapper>
			<z-card title="排盘简批" style="font-size: 12px;">
				<block v-if="(resp&&resp.length)||resp">
					<view>
						<text class="enhance-text" style="font-size: 13px;font-weight: 600;">田宅宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[11].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[11].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">官禄宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[0].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[0].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">奴仆宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[1].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[1].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">迁移宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[2].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[2].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">疾厄宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[3].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[3].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">财帛宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[4].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[4].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">子女宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[5].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[5].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">兄弟宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[6].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[6].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">命宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[7].tianfuxing_desc }}</text>
						</view>
						<view class="">
						    <text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[7].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">父母宫:</text>
						<view class="">
						<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[8].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[8].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">福德宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[9].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[9].ziweixing_desc }}</text>
						</view>
					</view>
					<view>
						<text class="shrink-0 " style="font-size: 13px;font-weight: 600;">田宅宫:</text>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">紫薇星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[10].tianfuxing_desc }}</text>
						</view>
						<view class="">
							<text style="color: gray;margin-right: 20rpx;">天府星系:</text>
							<text class="card-content_right ">{{ resp.gong_pan[10].ziweixing_desc }}</text>
						</view>
					</view>

				</block>
			</z-card>
			<view class="bottom-btns" style="transform: translateY(-100%);" @click="todashi">
				<view class="start-btn">
					<text>大师详解</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '紫薇排盘结果分析',
				desc: '本次测算结果仅供娱乐使用，请勿用于封建迷信和违法用途。',
				resp: null,
			}
		},
		onLoad(opt) {
			this.resp = JSON.parse(opt.params)

		},
		methods:{
			todashi(){
				uni.switchTab({
					url:'/pages/tabbar/service'
				})
			}
		}
	}
</script>
<style lang="scss" scoped></style>